PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.shadings Package / PDFAxialShading Class / setDomain Method
An array of two numbers [t0 t1] specifying the limiting values of a parametric variable t.
In This Topic
    setDomain Method
    In This Topic
    Sets the shading domain.
    The variable is considered to vary linearly between these two values as the color gradient varies between the starting and ending points of the axis. The variable t becomes the input argument to the shading function.
    Syntax
    public void setDomain( 
       double[] value
    )

    Parameters

    value
    An array of two numbers [t0 t1] specifying the limiting values of a parametric variable t.
    Exceptions
    ExceptionDescription
    Thrown when the domain array length is not equal to 2.
    See Also